package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component//项目创建时会自动创建该类的bean并且交给Spring的容器管理
@ConfigurationProperties(prefix = "sky.alioss")//会自动从配置文件中获取对应值为成员变量赋值
@Data
public class AliOssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
